import React from "react";

import { SearchBar, Button, WhiteSpace, WingBlank } from 'antd-mobile';


class Search extends React.Component {
    state = {
        value: '',
    };
    componentDidMount() {
        this.autoFocusInst.focus();
    }
    onChange= (value) => {
        this.setState({ value });
    };
    clear = () => {
        this.setState({ value: '' });
    };
    handleClick = () => {
        this.manualFocusInst.focus();
    }
    render() {
        return (
            <div className="container">

                <SearchBar placeholder="自动获取光标" ref={ref => this.autoFocusInst = ref} />

            </div>
        );
    }
}

export default Search;